# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=stegseek
pkgver=v0.6.r10.g5896978
pkgrel=1
epoch=1
pkgdesc='Lightning fast steghide cracker.'
groups=('blackarch' 'blackarch-stego')
arch=('x86_64' 'aarch64')
url='https://github.com/RickdeJager/stegseek'
license=('GPL3')
depends=('mhash' 'libmcrypt' 'libjpeg' 'zlib')
makedepends=('cmake' 'git')
source=("git+https://github.com/RickdeJager/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname

  cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release..
  make -C build
}

package() {
  cd $pkgname

  cd build

  make DESTDIR="$pkgdir" install
}

